﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="adminBookDetail.aspx.cs" Inherits="LibrarySystem.WebForm9" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
     <div id="bookDetailDiv">
        <asp:Label ID="bookDetailTitle" CssClass="labels" runat="server"></asp:Label>
        <asp:Label ID="bookDetailAuthor" runat="server" CssClass="labels"></asp:Label>
        <asp:Label ID="bookDetailPublicationYear" runat="server" CssClass="labels"></asp:Label>
        <asp:Label ID="bookDetailPublisher" runat="server" CssClass="labels"></asp:Label>
        <asp:Label ID="bookDetailISBN" runat="server" CssClass="labels"></asp:Label>
        <asp:Label ID="bookDetailSignum" runat="server" CssClass="labels"></asp:Label>
        <asp:Label ID="bookDetailLibNo" runat="server" CssClass="labels"></asp:Label><br />
        <asp:Label ID="bookDetailCopyCount" runat="server" CssClass="labels"></asp:Label>

        <asp:ListView ID="bookDetailCopyList" runat="server">
            <LayoutTemplate> 
                 <tbody> <asp:PlaceHolder runat="server" ID="itemPlaceholder" /> </tbody>
            </LayoutTemplate>
            <ItemTemplate>            
                    <table id="bookDetailCopies"> <tr><td id="bookDetailOne">Barcode: <%# Eval("Barcode") %> </td><td id="bookDetailTwo"><%# Eval("status") %></td></tr></table>
            </ItemTemplate>        
        </asp:ListView>
    </div>
    <div id="adminControlDiv">
        <div id="adminControls">
            <asp:Button ID="adminCtrlModify" runat="server" CssClass="adminModify" Text="Modifiera" OnClick="adminCtrlModify_Click" />
            <asp:Button ID="adminCtrlRemove" runat="server" CssClass="adminDelete" Text="Ta bort" OnClick="adminCtrlRemove_Click" />
        </div>

        <asp:Panel id="adminModify" CssClass="adminPanel" runat="server" Visible="false">
            <asp:Label runat="server">Titel: 
            <asp:TextBox ID="modifyTitle" runat="server"></asp:TextBox></asp:Label><br />
            <asp:Label runat="server">ISBN: 
            <asp:TextBox ID="modifyISBN" runat="server"></asp:TextBox></asp:Label><br />
            <asp:Label  runat="server" >Publiceringsår: 
            <asp:TextBox ID="modifyPublicationYear" runat="server"></asp:TextBox></asp:Label><br />
            <asp:Label runat="server" >Publicist: 
            <asp:TextBox ID="modifyPublisher" runat="server"></asp:TextBox></asp:Label><br />
            <asp:Label runat="server">Klassifikation: 
            <asp:TextBox ID="modifySignum" runat="server"></asp:TextBox></asp:Label><br />
            <asp:Label runat="server" >LibNo: 
            <asp:TextBox ID="modifyLibNo" runat="server"></asp:TextBox></asp:Label><br />
            <asp:Button ID="adminCtrlSave" runat="server" CssClass="adminSave" Text="Spara" OnClick="adminCtrlSave_Click" />
        </asp:Panel>
    </div>
</asp:Content>
